package book.nettyinaction.ch05;

import io.netty.buffer.ByteBuf;

/**
 *
 * 代码清单 5-6 访问数据
 */
public class Demo006AccessByteBuf {
    public static void main(String[] args) {
        ByteBuf buffer = null;
        for ( int i = 0; i < buffer.capacity(); i++ ) {
            byte b = buffer.getByte(i);
            System.out.println( (char)b );
        }
    }
}
